 private $_dbConfig;
    protected $_thisDb;

    public function init() {
        parent::init();
        $configPath = ROOT . '/zendweb/configs/application.ini';
        $options = new Zend_Config_Ini($configPath, 'dbconfig');
        $options = $options->toArray();
        $this->_dbConfig = $options['resources']['db'];
        $yiiblogConfig = $this->_dbConfig['yiiblog'];
        $this->_thisDb = Zend_Db::factory($yiiblogConfig['adapter'], $yiiblogConfig['params']);
        //Zend_Db_Table::setDefaultAdapter( $db );
        Zend_Db_Table::setDefaultAdapter($this->_thisDb);
    }

    protected function getOtherDbAction($db) {
        if (!empty($db) && array_key_exists($db, $this->_dbConfig)) {
            try {
                $thisDbConfig = $this->_dbConfig[$db];
                return Zend_Db::factory($thisDbConfig['adapter'], $thisDbConfig['params']);
            } catch (Exception $e) {
                
            }
        } else {
            
        }
    }

    
    
    
    resources.db.yiiblog.adapter="PDO_MYSQL"
resources.db.yiiblog.params.username="root"
resources.db.yiiblog.params.password=""
resources.db.yiiblog.params.dbname="yiiblog"
resources.db.yiiblog.params.charset='utf8'

resources.db.yesjdv2.adapter="PDO_MYSQL"
resources.db.yesjdv2.params.username="root"
resources.db.yesjdv2.params.password=""
resources.db.yesjdv2.params.dbname="yesjdv2"
resources.db.yesjdv2.params.charset='utf8'